function createfigure(VertexNormals1, YData1, XData1, Vertices1, Faces1, YData2, Vertices2, YData3, Vertices3, YData4, Vertices4, YData5, Vertices5, YData6, Vertices6, XData2, Vertices7, Vertices8, Vertices9, Vertices10, Vertices11, Vertices12, XData3, Vertices13, Vertices14, Vertices15, Vertices16, Vertices17, Vertices18, XData4, Vertices19, Vertices20, Vertices21, Vertices22, Vertices23, Vertices24, XData5, Vertices25, Vertices26, Vertices27, Vertices28, Vertices29, Vertices30, XData6, Vertices31, Vertices32, Vertices33, Vertices34, Vertices35, Vertices36, X1, Y1)
%CREATEFIGURE(VERTEXNORMALS1, YDATA1, XDATA1, VERTICES1, FACES1, YDATA2, VERTICES2, YDATA3, VERTICES3, YDATA4, VERTICES4, YDATA5, VERTICES5, YDATA6, VERTICES6, XDATA2, VERTICES7, VERTICES8, VERTICES9, VERTICES10, VERTICES11, VERTICES12, XDATA3, VERTICES13, VERTICES14, VERTICES15, VERTICES16, VERTICES17, VERTICES18, XDATA4, VERTICES19, VERTICES20, VERTICES21, VERTICES22, VERTICES23, VERTICES24, XDATA5, VERTICES25, VERTICES26, VERTICES27, VERTICES28, VERTICES29, VERTICES30, XDATA6, VERTICES31, VERTICES32, VERTICES33, VERTICES34, VERTICES35, VERTICES36, X1, Y1)
%  VERTEXNORMALS1:  patch vertexnormals
%  YDATA1:  patch ydata
%  XDATA1:  patch xdata
%  VERTICES1:  patch vertices
%  FACES1:  patch faces
%  YDATA2:  patch ydata
%  VERTICES2:  patch vertices
%  YDATA3:  patch ydata
%  VERTICES3:  patch vertices
%  YDATA4:  patch ydata
%  VERTICES4:  patch vertices
%  YDATA5:  patch ydata
%  VERTICES5:  patch vertices
%  YDATA6:  patch ydata
%  VERTICES6:  patch vertices
%  XDATA2:  patch xdata
%  VERTICES7:  patch vertices
%  VERTICES8:  patch vertices
%  VERTICES9:  patch vertices
%  VERTICES10:  patch vertices
%  VERTICES11:  patch vertices
%  VERTICES12:  patch vertices
%  XDATA3:  patch xdata
%  VERTICES13:  patch vertices
%  VERTICES14:  patch vertices
%  VERTICES15:  patch vertices
%  VERTICES16:  patch vertices
%  VERTICES17:  patch vertices
%  VERTICES18:  patch vertices
%  XDATA4:  patch xdata
%  VERTICES19:  patch vertices
%  VERTICES20:  patch vertices
%  VERTICES21:  patch vertices
%  VERTICES22:  patch vertices
%  VERTICES23:  patch vertices
%  VERTICES24:  patch vertices
%  XDATA5:  patch xdata
%  VERTICES25:  patch vertices
%  VERTICES26:  patch vertices
%  VERTICES27:  patch vertices
%  VERTICES28:  patch vertices
%  VERTICES29:  patch vertices
%  VERTICES30:  patch vertices
%  XDATA6:  patch xdata
%  VERTICES31:  patch vertices
%  VERTICES32:  patch vertices
%  VERTICES33:  patch vertices
%  VERTICES34:  patch vertices
%  VERTICES35:  patch vertices
%  VERTICES36:  patch vertices
%  X1:  vector of x data
%  Y1:  vector of y data

%  Auto-generated by MATLAB on 09-Aug-2014 13:38:00

% Create figure
figure1 = figure('Tag','PLOTCONFUSION1','NumberTitle','off',...
    'Name','Confusion (plotconfusion)');

% uicontrol currently does not support code generation, enter 'doc uicontrol' for correct input syntax
% In order to generate code for uicontrol, you may use GUIDE. Enter 'doc guide' for more information

% uicontrol(...);

% Create subplot
subplot1 = subplot(2,2,1,'Parent',figure1,...
    'YTickLabel',{'1','2','3','4','5',''},...
    'YTick',[1 2 3 4 5 6 7],...
    'YDir','reverse',...
    'XTickLabel',{'1','2','3','4','5',''},...
    'XTick',[1 2 3 4 5 6 7],...
    'TickLength',[0 0],...
    'DataAspectRatio',[1 1 1]);
%% Uncomment the following line to preserve the X-limits of the axes
% xlim(subplot1,[0.5 6.5]);
%% Uncomment the following line to preserve the Y-limits of the axes
% ylim(subplot1,[0.5 6.5]);
box(subplot1,'on');
hold(subplot1,'all');

% Create patch
patch('Parent',subplot1,'VertexNormals',VertexNormals1,'YData',YData1,...
    'XData',XData1,...
    'Vertices',Vertices1,...
    'Faces',Faces1,...
    'FaceColor',[0.470588235294118 0.901960784313726 0.705882352941177]);

% Create text
text('Parent',subplot1,'VerticalAlignment','bottom','String','284',...
    'Position',[1 1 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot1,'VerticalAlignment','top','String','7.1%',...
    'Position',[1 1 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot1,'VertexNormals',VertexNormals1,'YData',YData2,...
    'XData',XData1,...
    'Vertices',Vertices2,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot1,'VerticalAlignment','bottom','String','381',...
    'Position',[1 2 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot1,'VerticalAlignment','top','String','9.5%',...
    'Position',[1 2 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot1,'VertexNormals',VertexNormals1,'YData',YData3,...
    'XData',XData1,...
    'Vertices',Vertices3,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot1,'VerticalAlignment','bottom','String','27',...
    'Position',[1 3 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot1,'VerticalAlignment','top','String','0.7%',...
    'Position',[1 3 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot1,'VertexNormals',VertexNormals1,'YData',YData4,...
    'XData',XData1,...
    'Vertices',Vertices4,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot1,'VerticalAlignment','bottom','String','31',...
    'Position',[1 4 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot1,'VerticalAlignment','top','String','0.8%',...
    'Position',[1 4 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot1,'VertexNormals',VertexNormals1,'YData',YData5,...
    'XData',XData1,...
    'Vertices',Vertices5,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot1,'VerticalAlignment','bottom','String','76',...
    'Position',[1 5 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot1,'VerticalAlignment','top','String','1.9%',...
    'Position',[1 5 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot1,'VertexNormals',VertexNormals1,'YData',YData6,...
    'XData',XData1,...
    'Vertices',Vertices6,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot1,'VerticalAlignment','bottom','String','35.5%',...
    'Position',[1 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot1,'VerticalAlignment','top','String','64.5%',...
    'Position',[1 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot1,'VertexNormals',VertexNormals1,'YData',YData1,...
    'XData',XData2,...
    'Vertices',Vertices7,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot1,'VerticalAlignment','bottom','String','163',...
    'Position',[2 1 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot1,'VerticalAlignment','top','String','4.1%',...
    'Position',[2 1 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot1,'VertexNormals',VertexNormals1,'YData',YData2,...
    'XData',XData2,...
    'Vertices',Vertices8,...
    'Faces',Faces1,...
    'FaceColor',[0.470588235294118 0.901960784313726 0.705882352941177]);

% Create text
text('Parent',subplot1,'VerticalAlignment','bottom','String','497',...
    'Position',[2 2 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot1,'VerticalAlignment','top','String','12.4%',...
    'Position',[2 2 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot1,'VertexNormals',VertexNormals1,'YData',YData3,...
    'XData',XData2,...
    'Vertices',Vertices9,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot1,'VerticalAlignment','bottom','String','31',...
    'Position',[2 3 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot1,'VerticalAlignment','top','String','0.8%',...
    'Position',[2 3 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot1,'VertexNormals',VertexNormals1,'YData',YData4,...
    'XData',XData2,...
    'Vertices',Vertices10,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot1,'VerticalAlignment','bottom','String','8',...
    'Position',[2 4 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot1,'VerticalAlignment','top','String','0.2%',...
    'Position',[2 4 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot1,'VertexNormals',VertexNormals1,'YData',YData5,...
    'XData',XData2,...
    'Vertices',Vertices11,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot1,'VerticalAlignment','bottom','String','63',...
    'Position',[2 5 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot1,'VerticalAlignment','top','String','1.6%',...
    'Position',[2 5 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot1,'VertexNormals',VertexNormals1,'YData',YData6,...
    'XData',XData2,...
    'Vertices',Vertices12,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot1,'VerticalAlignment','bottom','String','65.2%',...
    'Position',[2 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot1,'VerticalAlignment','top','String','34.8%',...
    'Position',[2 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot1,'VertexNormals',VertexNormals1,'YData',YData1,...
    'XData',XData3,...
    'Vertices',Vertices13,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot1,'VerticalAlignment','bottom','String','21',...
    'Position',[3 1 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot1,'VerticalAlignment','top','String','0.5%',...
    'Position',[3 1 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot1,'VertexNormals',VertexNormals1,'YData',YData2,...
    'XData',XData3,...
    'Vertices',Vertices14,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot1,'VerticalAlignment','bottom','String','10',...
    'Position',[3 2 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot1,'VerticalAlignment','top','String','0.3%',...
    'Position',[3 2 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot1,'VertexNormals',VertexNormals1,'YData',YData3,...
    'XData',XData3,...
    'Vertices',Vertices15,...
    'Faces',Faces1,...
    'FaceColor',[0.470588235294118 0.901960784313726 0.705882352941177]);

% Create text
text('Parent',subplot1,'VerticalAlignment','bottom','String','599',...
    'Position',[3 3 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot1,'VerticalAlignment','top','String','15.0%',...
    'Position',[3 3 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot1,'VertexNormals',VertexNormals1,'YData',YData4,...
    'XData',XData3,...
    'Vertices',Vertices16,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot1,'VerticalAlignment','bottom','String','9',...
    'Position',[3 4 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot1,'VerticalAlignment','top','String','0.2%',...
    'Position',[3 4 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot1,'VertexNormals',VertexNormals1,'YData',YData5,...
    'XData',XData3,...
    'Vertices',Vertices17,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot1,'VerticalAlignment','bottom','String','184',...
    'Position',[3 5 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot1,'VerticalAlignment','top','String','4.6%',...
    'Position',[3 5 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot1,'VertexNormals',VertexNormals1,'YData',YData6,...
    'XData',XData3,...
    'Vertices',Vertices18,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot1,'VerticalAlignment','bottom','String','72.8%',...
    'Position',[3 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot1,'VerticalAlignment','top','String','27.2%',...
    'Position',[3 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot1,'VertexNormals',VertexNormals1,'YData',YData1,...
    'XData',XData4,...
    'Vertices',Vertices19,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot1,'VerticalAlignment','bottom','String','21',...
    'Position',[4 1 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot1,'VerticalAlignment','top','String','0.5%',...
    'Position',[4 1 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot1,'VertexNormals',VertexNormals1,'YData',YData2,...
    'XData',XData4,...
    'Vertices',Vertices20,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot1,'VerticalAlignment','bottom','String','0',...
    'Position',[4 2 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot1,'VerticalAlignment','top','String','0.0%',...
    'Position',[4 2 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot1,'VertexNormals',VertexNormals1,'YData',YData3,...
    'XData',XData4,...
    'Vertices',Vertices21,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot1,'VerticalAlignment','bottom','String','18',...
    'Position',[4 3 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot1,'VerticalAlignment','top','String','0.4%',...
    'Position',[4 3 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot1,'VertexNormals',VertexNormals1,'YData',YData4,...
    'XData',XData4,...
    'Vertices',Vertices22,...
    'Faces',Faces1,...
    'FaceColor',[0.470588235294118 0.901960784313726 0.705882352941177]);

% Create text
text('Parent',subplot1,'VerticalAlignment','bottom','String','761',...
    'Position',[4 4 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot1,'VerticalAlignment','top','String','19.0%',...
    'Position',[4 4 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot1,'VertexNormals',VertexNormals1,'YData',YData5,...
    'XData',XData4,...
    'Vertices',Vertices23,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot1,'VerticalAlignment','bottom','String','0',...
    'Position',[4 5 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot1,'VerticalAlignment','top','String','0.0%',...
    'Position',[4 5 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot1,'VertexNormals',VertexNormals1,'YData',YData6,...
    'XData',XData4,...
    'Vertices',Vertices24,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot1,'VerticalAlignment','bottom','String','95.1%',...
    'Position',[4 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot1,'VerticalAlignment','top','String','4.9%',...
    'Position',[4 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot1,'VertexNormals',VertexNormals1,'YData',YData1,...
    'XData',XData5,...
    'Vertices',Vertices25,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot1,'VerticalAlignment','bottom','String','40',...
    'Position',[5 1 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot1,'VerticalAlignment','top','String','1.0%',...
    'Position',[5 1 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot1,'VertexNormals',VertexNormals1,'YData',YData2,...
    'XData',XData5,...
    'Vertices',Vertices26,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot1,'VerticalAlignment','bottom','String','36',...
    'Position',[5 2 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot1,'VerticalAlignment','top','String','0.9%',...
    'Position',[5 2 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot1,'VertexNormals',VertexNormals1,'YData',YData3,...
    'XData',XData5,...
    'Vertices',Vertices27,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot1,'VerticalAlignment','bottom','String','105',...
    'Position',[5 3 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot1,'VerticalAlignment','top','String','2.6%',...
    'Position',[5 3 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot1,'VertexNormals',VertexNormals1,'YData',YData4,...
    'XData',XData5,...
    'Vertices',Vertices28,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot1,'VerticalAlignment','bottom','String','0',...
    'Position',[5 4 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot1,'VerticalAlignment','top','String','0.0%',...
    'Position',[5 4 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot1,'VertexNormals',VertexNormals1,'YData',YData5,...
    'XData',XData5,...
    'Vertices',Vertices29,...
    'Faces',Faces1,...
    'FaceColor',[0.470588235294118 0.901960784313726 0.705882352941177]);

% Create text
text('Parent',subplot1,'VerticalAlignment','bottom','String','635',...
    'Position',[5 5 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot1,'VerticalAlignment','top','String','15.9%',...
    'Position',[5 5 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot1,'VertexNormals',VertexNormals1,'YData',YData6,...
    'XData',XData5,...
    'Vertices',Vertices30,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot1,'VerticalAlignment','bottom','String','77.8%',...
    'Position',[5 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot1,'VerticalAlignment','top','String','22.2%',...
    'Position',[5 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot1,'VertexNormals',VertexNormals1,'YData',YData1,...
    'XData',XData6,...
    'Vertices',Vertices31,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot1,'VerticalAlignment','bottom','String','53.7%',...
    'Position',[6 1 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot1,'VerticalAlignment','top','String','46.3%',...
    'Position',[6 1 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot1,'VertexNormals',VertexNormals1,'YData',YData2,...
    'XData',XData6,...
    'Vertices',Vertices32,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot1,'VerticalAlignment','bottom','String','53.8%',...
    'Position',[6 2 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot1,'VerticalAlignment','top','String','46.2%',...
    'Position',[6 2 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot1,'VertexNormals',VertexNormals1,'YData',YData3,...
    'XData',XData6,...
    'Vertices',Vertices33,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot1,'VerticalAlignment','bottom','String','76.8%',...
    'Position',[6 3 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot1,'VerticalAlignment','top','String','23.2%',...
    'Position',[6 3 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot1,'VertexNormals',VertexNormals1,'YData',YData4,...
    'XData',XData6,...
    'Vertices',Vertices34,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot1,'VerticalAlignment','bottom','String','94.1%',...
    'Position',[6 4 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot1,'VerticalAlignment','top','String','5.9%',...
    'Position',[6 4 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot1,'VertexNormals',VertexNormals1,'YData',YData5,...
    'XData',XData6,...
    'Vertices',Vertices35,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot1,'VerticalAlignment','bottom','String','66.3%',...
    'Position',[6 5 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot1,'VerticalAlignment','top','String','33.7%',...
    'Position',[6 5 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot1,'VertexNormals',VertexNormals1,'YData',YData6,...
    'XData',XData6,...
    'Vertices',Vertices36,...
    'Faces',Faces1,...
    'FaceColor',[0.470588235294118 0.588235294117647 0.901960784313726]);

% Create text
text('Parent',subplot1,'VerticalAlignment','bottom','String','69.4%',...
    'Position',[6 6 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot1,'VerticalAlignment','top','String','30.6%',...
    'Position',[6 6 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold',...
    'Color',[0.4 0 0]);

% Create plot
plot(X1,Y1,'Parent',subplot1,'LineWidth',2,'Color',[0.25 0.25 0.25]);

% Create plot
plot(Y1,X1,'Parent',subplot1,'LineWidth',2,'Color',[0.25 0.25 0.25]);

% Create xlabel
xlabel('Target Class','FontWeight','bold','FontSize',12);

% Create ylabel
ylabel('Output Class','FontWeight','bold','FontSize',12);

% Create title
title('Training Confusion Matrix','FontWeight','bold','FontSize',12);

% Create subplot
subplot2 = subplot(2,2,2,'Parent',figure1,...
    'YTickLabel',{'1','2','3','4','5',''},...
    'YTick',[1 2 3 4 5 6 7],...
    'YDir','reverse',...
    'XTickLabel',{'1','2','3','4','5',''},...
    'XTick',[1 2 3 4 5 6 7],...
    'TickLength',[0 0],...
    'DataAspectRatio',[1 1 1]);
%% Uncomment the following line to preserve the X-limits of the axes
% xlim(subplot2,[0.5 6.5]);
%% Uncomment the following line to preserve the Y-limits of the axes
% ylim(subplot2,[0.5 6.5]);
box(subplot2,'on');
hold(subplot2,'all');

% Create patch
patch('Parent',subplot2,'VertexNormals',VertexNormals1,'YData',YData1,...
    'XData',XData1,...
    'Vertices',Vertices1,...
    'Faces',Faces1,...
    'FaceColor',[0.470588235294118 0.901960784313726 0.705882352941177]);

% Create text
text('Parent',subplot2,'VerticalAlignment','bottom','String','82',...
    'Position',[1 1 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot2,'VerticalAlignment','top','String','6.8%',...
    'Position',[1 1 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot2,'VertexNormals',VertexNormals1,'YData',YData2,...
    'XData',XData1,...
    'Vertices',Vertices2,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot2,'VerticalAlignment','bottom','String','99',...
    'Position',[1 2 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot2,'VerticalAlignment','top','String','8.3%',...
    'Position',[1 2 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot2,'VertexNormals',VertexNormals1,'YData',YData3,...
    'XData',XData1,...
    'Vertices',Vertices3,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot2,'VerticalAlignment','bottom','String','10',...
    'Position',[1 3 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot2,'VerticalAlignment','top','String','0.8%',...
    'Position',[1 3 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot2,'VertexNormals',VertexNormals1,'YData',YData4,...
    'XData',XData1,...
    'Vertices',Vertices4,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot2,'VerticalAlignment','bottom','String','16',...
    'Position',[1 4 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot2,'VerticalAlignment','top','String','1.3%',...
    'Position',[1 4 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot2,'VertexNormals',VertexNormals1,'YData',YData5,...
    'XData',XData1,...
    'Vertices',Vertices5,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot2,'VerticalAlignment','bottom','String','22',...
    'Position',[1 5 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot2,'VerticalAlignment','top','String','1.8%',...
    'Position',[1 5 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot2,'VertexNormals',VertexNormals1,'YData',YData6,...
    'XData',XData1,...
    'Vertices',Vertices6,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot2,'VerticalAlignment','bottom','String','35.8%',...
    'Position',[1 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot2,'VerticalAlignment','top','String','64.2%',...
    'Position',[1 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot2,'VertexNormals',VertexNormals1,'YData',YData1,...
    'XData',XData2,...
    'Vertices',Vertices7,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot2,'VerticalAlignment','bottom','String','60',...
    'Position',[2 1 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot2,'VerticalAlignment','top','String','5.0%',...
    'Position',[2 1 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot2,'VertexNormals',VertexNormals1,'YData',YData2,...
    'XData',XData2,...
    'Vertices',Vertices8,...
    'Faces',Faces1,...
    'FaceColor',[0.470588235294118 0.901960784313726 0.705882352941177]);

% Create text
text('Parent',subplot2,'VerticalAlignment','bottom','String','153',...
    'Position',[2 2 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot2,'VerticalAlignment','top','String','12.8%',...
    'Position',[2 2 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot2,'VertexNormals',VertexNormals1,'YData',YData3,...
    'XData',XData2,...
    'Vertices',Vertices9,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot2,'VerticalAlignment','bottom','String','9',...
    'Position',[2 3 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot2,'VerticalAlignment','top','String','0.8%',...
    'Position',[2 3 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot2,'VertexNormals',VertexNormals1,'YData',YData4,...
    'XData',XData2,...
    'Vertices',Vertices10,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot2,'VerticalAlignment','bottom','String','5',...
    'Position',[2 4 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot2,'VerticalAlignment','top','String','0.4%',...
    'Position',[2 4 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot2,'VertexNormals',VertexNormals1,'YData',YData5,...
    'XData',XData2,...
    'Vertices',Vertices11,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot2,'VerticalAlignment','bottom','String','13',...
    'Position',[2 5 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot2,'VerticalAlignment','top','String','1.1%',...
    'Position',[2 5 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot2,'VertexNormals',VertexNormals1,'YData',YData6,...
    'XData',XData2,...
    'Vertices',Vertices12,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot2,'VerticalAlignment','bottom','String','63.7%',...
    'Position',[2 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot2,'VerticalAlignment','top','String','36.3%',...
    'Position',[2 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot2,'VertexNormals',VertexNormals1,'YData',YData1,...
    'XData',XData3,...
    'Vertices',Vertices13,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot2,'VerticalAlignment','bottom','String','3',...
    'Position',[3 1 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot2,'VerticalAlignment','top','String','0.3%',...
    'Position',[3 1 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot2,'VertexNormals',VertexNormals1,'YData',YData2,...
    'XData',XData3,...
    'Vertices',Vertices14,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot2,'VerticalAlignment','bottom','String','6',...
    'Position',[3 2 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot2,'VerticalAlignment','top','String','0.5%',...
    'Position',[3 2 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot2,'VertexNormals',VertexNormals1,'YData',YData3,...
    'XData',XData3,...
    'Vertices',Vertices15,...
    'Faces',Faces1,...
    'FaceColor',[0.470588235294118 0.901960784313726 0.705882352941177]);

% Create text
text('Parent',subplot2,'VerticalAlignment','bottom','String','170',...
    'Position',[3 3 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot2,'VerticalAlignment','top','String','14.2%',...
    'Position',[3 3 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot2,'VertexNormals',VertexNormals1,'YData',YData4,...
    'XData',XData3,...
    'Vertices',Vertices16,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot2,'VerticalAlignment','bottom','String','1',...
    'Position',[3 4 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot2,'VerticalAlignment','top','String','0.1%',...
    'Position',[3 4 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot2,'VertexNormals',VertexNormals1,'YData',YData5,...
    'XData',XData3,...
    'Vertices',Vertices17,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot2,'VerticalAlignment','bottom','String','57',...
    'Position',[3 5 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot2,'VerticalAlignment','top','String','4.8%',...
    'Position',[3 5 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot2,'VertexNormals',VertexNormals1,'YData',YData6,...
    'XData',XData3,...
    'Vertices',Vertices18,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot2,'VerticalAlignment','bottom','String','71.7%',...
    'Position',[3 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot2,'VerticalAlignment','top','String','28.3%',...
    'Position',[3 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot2,'VertexNormals',VertexNormals1,'YData',YData1,...
    'XData',XData4,...
    'Vertices',Vertices19,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot2,'VerticalAlignment','bottom','String','5',...
    'Position',[4 1 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot2,'VerticalAlignment','top','String','0.4%',...
    'Position',[4 1 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot2,'VertexNormals',VertexNormals1,'YData',YData2,...
    'XData',XData4,...
    'Vertices',Vertices20,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot2,'VerticalAlignment','bottom','String','0',...
    'Position',[4 2 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot2,'VerticalAlignment','top','String','0.0%',...
    'Position',[4 2 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot2,'VertexNormals',VertexNormals1,'YData',YData3,...
    'XData',XData4,...
    'Vertices',Vertices21,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot2,'VerticalAlignment','bottom','String','7',...
    'Position',[4 3 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot2,'VerticalAlignment','top','String','0.6%',...
    'Position',[4 3 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot2,'VertexNormals',VertexNormals1,'YData',YData4,...
    'XData',XData4,...
    'Vertices',Vertices22,...
    'Faces',Faces1,...
    'FaceColor',[0.470588235294118 0.901960784313726 0.705882352941177]);

% Create text
text('Parent',subplot2,'VerticalAlignment','bottom','String','233',...
    'Position',[4 4 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot2,'VerticalAlignment','top','String','19.4%',...
    'Position',[4 4 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot2,'VertexNormals',VertexNormals1,'YData',YData5,...
    'XData',XData4,...
    'Vertices',Vertices23,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot2,'VerticalAlignment','bottom','String','0',...
    'Position',[4 5 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot2,'VerticalAlignment','top','String','0.0%',...
    'Position',[4 5 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot2,'VertexNormals',VertexNormals1,'YData',YData6,...
    'XData',XData4,...
    'Vertices',Vertices24,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot2,'VerticalAlignment','bottom','String','95.1%',...
    'Position',[4 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot2,'VerticalAlignment','top','String','4.9%',...
    'Position',[4 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot2,'VertexNormals',VertexNormals1,'YData',YData1,...
    'XData',XData5,...
    'Vertices',Vertices25,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot2,'VerticalAlignment','bottom','String','9',...
    'Position',[5 1 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot2,'VerticalAlignment','top','String','0.8%',...
    'Position',[5 1 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot2,'VertexNormals',VertexNormals1,'YData',YData2,...
    'XData',XData5,...
    'Vertices',Vertices26,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot2,'VerticalAlignment','bottom','String','9',...
    'Position',[5 2 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot2,'VerticalAlignment','top','String','0.8%',...
    'Position',[5 2 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot2,'VertexNormals',VertexNormals1,'YData',YData3,...
    'XData',XData5,...
    'Vertices',Vertices27,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot2,'VerticalAlignment','bottom','String','35',...
    'Position',[5 3 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot2,'VerticalAlignment','top','String','2.9%',...
    'Position',[5 3 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot2,'VertexNormals',VertexNormals1,'YData',YData4,...
    'XData',XData5,...
    'Vertices',Vertices28,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot2,'VerticalAlignment','bottom','String','0',...
    'Position',[5 4 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot2,'VerticalAlignment','top','String','0.0%',...
    'Position',[5 4 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot2,'VertexNormals',VertexNormals1,'YData',YData5,...
    'XData',XData5,...
    'Vertices',Vertices29,...
    'Faces',Faces1,...
    'FaceColor',[0.470588235294118 0.901960784313726 0.705882352941177]);

% Create text
text('Parent',subplot2,'VerticalAlignment','bottom','String','196',...
    'Position',[5 5 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot2,'VerticalAlignment','top','String','16.3%',...
    'Position',[5 5 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot2,'VertexNormals',VertexNormals1,'YData',YData6,...
    'XData',XData5,...
    'Vertices',Vertices30,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot2,'VerticalAlignment','bottom','String','78.7%',...
    'Position',[5 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot2,'VerticalAlignment','top','String','21.3%',...
    'Position',[5 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot2,'VertexNormals',VertexNormals1,'YData',YData1,...
    'XData',XData6,...
    'Vertices',Vertices31,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot2,'VerticalAlignment','bottom','String','51.6%',...
    'Position',[6 1 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot2,'VerticalAlignment','top','String','48.4%',...
    'Position',[6 1 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot2,'VertexNormals',VertexNormals1,'YData',YData2,...
    'XData',XData6,...
    'Vertices',Vertices32,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot2,'VerticalAlignment','bottom','String','57.3%',...
    'Position',[6 2 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot2,'VerticalAlignment','top','String','42.7%',...
    'Position',[6 2 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot2,'VertexNormals',VertexNormals1,'YData',YData3,...
    'XData',XData6,...
    'Vertices',Vertices33,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot2,'VerticalAlignment','bottom','String','73.6%',...
    'Position',[6 3 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot2,'VerticalAlignment','top','String','26.4%',...
    'Position',[6 3 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot2,'VertexNormals',VertexNormals1,'YData',YData4,...
    'XData',XData6,...
    'Vertices',Vertices34,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot2,'VerticalAlignment','bottom','String','91.4%',...
    'Position',[6 4 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot2,'VerticalAlignment','top','String','8.6%',...
    'Position',[6 4 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot2,'VertexNormals',VertexNormals1,'YData',YData5,...
    'XData',XData6,...
    'Vertices',Vertices35,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot2,'VerticalAlignment','bottom','String','68.1%',...
    'Position',[6 5 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot2,'VerticalAlignment','top','String','31.9%',...
    'Position',[6 5 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot2,'VertexNormals',VertexNormals1,'YData',YData6,...
    'XData',XData6,...
    'Vertices',Vertices36,...
    'Faces',Faces1,...
    'FaceColor',[0.470588235294118 0.588235294117647 0.901960784313726]);

% Create text
text('Parent',subplot2,'VerticalAlignment','bottom','String','69.5%',...
    'Position',[6 6 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot2,'VerticalAlignment','top','String','30.5%',...
    'Position',[6 6 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold',...
    'Color',[0.4 0 0]);

% Create plot
plot(X1,Y1,'Parent',subplot2,'LineWidth',2,'Color',[0.25 0.25 0.25]);

% Create plot
plot(Y1,X1,'Parent',subplot2,'LineWidth',2,'Color',[0.25 0.25 0.25]);

% Create xlabel
xlabel('Target Class','FontWeight','bold','FontSize',12);

% Create ylabel
ylabel('Output Class','FontWeight','bold','FontSize',12);

% Create title
title('Validation Confusion Matrix','FontWeight','bold','FontSize',12);

% Create subplot
subplot3 = subplot(2,2,3,'Parent',figure1,...
    'YTickLabel',{'1','2','3','4','5',''},...
    'YTick',[1 2 3 4 5 6 7],...
    'YDir','reverse',...
    'XTickLabel',{'1','2','3','4','5',''},...
    'XTick',[1 2 3 4 5 6 7],...
    'TickLength',[0 0],...
    'DataAspectRatio',[1 1 1]);
%% Uncomment the following line to preserve the X-limits of the axes
% xlim(subplot3,[0.5 6.5]);
%% Uncomment the following line to preserve the Y-limits of the axes
% ylim(subplot3,[0.5 6.5]);
box(subplot3,'on');
hold(subplot3,'all');

% Create patch
patch('Parent',subplot3,'VertexNormals',VertexNormals1,'YData',YData1,...
    'XData',XData1,...
    'Vertices',Vertices1,...
    'Faces',Faces1,...
    'FaceColor',[0.470588235294118 0.901960784313726 0.705882352941177]);

% Create text
text('Parent',subplot3,'VerticalAlignment','bottom','String','219',...
    'Position',[1 1 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot3,'VerticalAlignment','top','String','7.8%',...
    'Position',[1 1 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot3,'VertexNormals',VertexNormals1,'YData',YData2,...
    'XData',XData1,...
    'Vertices',Vertices2,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot3,'VerticalAlignment','bottom','String','273',...
    'Position',[1 2 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot3,'VerticalAlignment','top','String','9.8%',...
    'Position',[1 2 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot3,'VertexNormals',VertexNormals1,'YData',YData3,...
    'XData',XData1,...
    'Vertices',Vertices3,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot3,'VerticalAlignment','bottom','String','15',...
    'Position',[1 3 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot3,'VerticalAlignment','top','String','0.5%',...
    'Position',[1 3 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot3,'VertexNormals',VertexNormals1,'YData',YData4,...
    'XData',XData1,...
    'Vertices',Vertices4,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot3,'VerticalAlignment','bottom','String','24',...
    'Position',[1 4 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot3,'VerticalAlignment','top','String','0.9%',...
    'Position',[1 4 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot3,'VertexNormals',VertexNormals1,'YData',YData5,...
    'XData',XData1,...
    'Vertices',Vertices5,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot3,'VerticalAlignment','bottom','String','41',...
    'Position',[1 5 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot3,'VerticalAlignment','top','String','1.5%',...
    'Position',[1 5 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot3,'VertexNormals',VertexNormals1,'YData',YData6,...
    'XData',XData1,...
    'Vertices',Vertices6,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot3,'VerticalAlignment','bottom','String','38.3%',...
    'Position',[1 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot3,'VerticalAlignment','top','String','61.7%',...
    'Position',[1 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot3,'VertexNormals',VertexNormals1,'YData',YData1,...
    'XData',XData2,...
    'Vertices',Vertices7,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot3,'VerticalAlignment','bottom','String','136',...
    'Position',[2 1 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot3,'VerticalAlignment','top','String','4.9%',...
    'Position',[2 1 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot3,'VertexNormals',VertexNormals1,'YData',YData2,...
    'XData',XData2,...
    'Vertices',Vertices8,...
    'Faces',Faces1,...
    'FaceColor',[0.470588235294118 0.901960784313726 0.705882352941177]);

% Create text
text('Parent',subplot3,'VerticalAlignment','bottom','String','398',...
    'Position',[2 2 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot3,'VerticalAlignment','top','String','14.2%',...
    'Position',[2 2 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot3,'VertexNormals',VertexNormals1,'YData',YData3,...
    'XData',XData2,...
    'Vertices',Vertices9,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot3,'VerticalAlignment','bottom','String','13',...
    'Position',[2 3 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot3,'VerticalAlignment','top','String','0.5%',...
    'Position',[2 3 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot3,'VertexNormals',VertexNormals1,'YData',YData4,...
    'XData',XData2,...
    'Vertices',Vertices10,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot3,'VerticalAlignment','bottom','String','7',...
    'Position',[2 4 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot3,'VerticalAlignment','top','String','0.3%',...
    'Position',[2 4 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot3,'VertexNormals',VertexNormals1,'YData',YData5,...
    'XData',XData2,...
    'Vertices',Vertices11,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot3,'VerticalAlignment','bottom','String','44',...
    'Position',[2 5 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot3,'VerticalAlignment','top','String','1.6%',...
    'Position',[2 5 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot3,'VertexNormals',VertexNormals1,'YData',YData6,...
    'XData',XData2,...
    'Vertices',Vertices12,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot3,'VerticalAlignment','bottom','String','66.6%',...
    'Position',[2 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot3,'VerticalAlignment','top','String','33.4%',...
    'Position',[2 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot3,'VertexNormals',VertexNormals1,'YData',YData1,...
    'XData',XData3,...
    'Vertices',Vertices13,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot3,'VerticalAlignment','bottom','String','17',...
    'Position',[3 1 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot3,'VerticalAlignment','top','String','0.6%',...
    'Position',[3 1 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot3,'VertexNormals',VertexNormals1,'YData',YData2,...
    'XData',XData3,...
    'Vertices',Vertices14,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot3,'VerticalAlignment','bottom','String','1',...
    'Position',[3 2 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot3,'VerticalAlignment','top','String','0.0%',...
    'Position',[3 2 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot3,'VertexNormals',VertexNormals1,'YData',YData3,...
    'XData',XData3,...
    'Vertices',Vertices15,...
    'Faces',Faces1,...
    'FaceColor',[0.470588235294118 0.901960784313726 0.705882352941177]);

% Create text
text('Parent',subplot3,'VerticalAlignment','bottom','String','406',...
    'Position',[3 3 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot3,'VerticalAlignment','top','String','14.5%',...
    'Position',[3 3 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot3,'VertexNormals',VertexNormals1,'YData',YData4,...
    'XData',XData3,...
    'Vertices',Vertices16,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot3,'VerticalAlignment','bottom','String','5',...
    'Position',[3 4 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot3,'VerticalAlignment','top','String','0.2%',...
    'Position',[3 4 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot3,'VertexNormals',VertexNormals1,'YData',YData5,...
    'XData',XData3,...
    'Vertices',Vertices17,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot3,'VerticalAlignment','bottom','String','111',...
    'Position',[3 5 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot3,'VerticalAlignment','top','String','4.0%',...
    'Position',[3 5 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot3,'VertexNormals',VertexNormals1,'YData',YData6,...
    'XData',XData3,...
    'Vertices',Vertices18,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot3,'VerticalAlignment','bottom','String','75.2%',...
    'Position',[3 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot3,'VerticalAlignment','top','String','24.8%',...
    'Position',[3 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot3,'VertexNormals',VertexNormals1,'YData',YData1,...
    'XData',XData4,...
    'Vertices',Vertices19,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot3,'VerticalAlignment','bottom','String','14',...
    'Position',[4 1 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot3,'VerticalAlignment','top','String','0.5%',...
    'Position',[4 1 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot3,'VertexNormals',VertexNormals1,'YData',YData2,...
    'XData',XData4,...
    'Vertices',Vertices20,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot3,'VerticalAlignment','bottom','String','0',...
    'Position',[4 2 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot3,'VerticalAlignment','top','String','0.0%',...
    'Position',[4 2 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot3,'VertexNormals',VertexNormals1,'YData',YData3,...
    'XData',XData4,...
    'Vertices',Vertices21,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot3,'VerticalAlignment','bottom','String','11',...
    'Position',[4 3 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot3,'VerticalAlignment','top','String','0.4%',...
    'Position',[4 3 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot3,'VertexNormals',VertexNormals1,'YData',YData4,...
    'XData',XData4,...
    'Vertices',Vertices22,...
    'Faces',Faces1,...
    'FaceColor',[0.470588235294118 0.901960784313726 0.705882352941177]);

% Create text
text('Parent',subplot3,'VerticalAlignment','bottom','String','530',...
    'Position',[4 4 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot3,'VerticalAlignment','top','String','18.9%',...
    'Position',[4 4 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot3,'VertexNormals',VertexNormals1,'YData',YData5,...
    'XData',XData4,...
    'Vertices',Vertices23,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot3,'VerticalAlignment','bottom','String','0',...
    'Position',[4 5 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot3,'VerticalAlignment','top','String','0.0%',...
    'Position',[4 5 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot3,'VertexNormals',VertexNormals1,'YData',YData6,...
    'XData',XData4,...
    'Vertices',Vertices24,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot3,'VerticalAlignment','bottom','String','95.5%',...
    'Position',[4 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot3,'VerticalAlignment','top','String','4.5%',...
    'Position',[4 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot3,'VertexNormals',VertexNormals1,'YData',YData1,...
    'XData',XData5,...
    'Vertices',Vertices25,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot3,'VerticalAlignment','bottom','String','28',...
    'Position',[5 1 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot3,'VerticalAlignment','top','String','1.0%',...
    'Position',[5 1 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot3,'VertexNormals',VertexNormals1,'YData',YData2,...
    'XData',XData5,...
    'Vertices',Vertices26,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot3,'VerticalAlignment','bottom','String','24',...
    'Position',[5 2 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot3,'VerticalAlignment','top','String','0.9%',...
    'Position',[5 2 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot3,'VertexNormals',VertexNormals1,'YData',YData3,...
    'XData',XData5,...
    'Vertices',Vertices27,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot3,'VerticalAlignment','bottom','String','73',...
    'Position',[5 3 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot3,'VerticalAlignment','top','String','2.6%',...
    'Position',[5 3 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot3,'VertexNormals',VertexNormals1,'YData',YData4,...
    'XData',XData5,...
    'Vertices',Vertices28,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot3,'VerticalAlignment','bottom','String','0',...
    'Position',[5 4 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot3,'VerticalAlignment','top','String','0.0%',...
    'Position',[5 4 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot3,'VertexNormals',VertexNormals1,'YData',YData5,...
    'XData',XData5,...
    'Vertices',Vertices29,...
    'Faces',Faces1,...
    'FaceColor',[0.470588235294118 0.901960784313726 0.705882352941177]);

% Create text
text('Parent',subplot3,'VerticalAlignment','bottom','String','410',...
    'Position',[5 5 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot3,'VerticalAlignment','top','String','14.6%',...
    'Position',[5 5 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot3,'VertexNormals',VertexNormals1,'YData',YData6,...
    'XData',XData5,...
    'Vertices',Vertices30,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot3,'VerticalAlignment','bottom','String','76.6%',...
    'Position',[5 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot3,'VerticalAlignment','top','String','23.4%',...
    'Position',[5 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot3,'VertexNormals',VertexNormals1,'YData',YData1,...
    'XData',XData6,...
    'Vertices',Vertices31,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot3,'VerticalAlignment','bottom','String','52.9%',...
    'Position',[6 1 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot3,'VerticalAlignment','top','String','47.1%',...
    'Position',[6 1 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot3,'VertexNormals',VertexNormals1,'YData',YData2,...
    'XData',XData6,...
    'Vertices',Vertices32,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot3,'VerticalAlignment','bottom','String','57.2%',...
    'Position',[6 2 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot3,'VerticalAlignment','top','String','42.8%',...
    'Position',[6 2 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot3,'VertexNormals',VertexNormals1,'YData',YData3,...
    'XData',XData6,...
    'Vertices',Vertices33,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot3,'VerticalAlignment','bottom','String','78.4%',...
    'Position',[6 3 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot3,'VerticalAlignment','top','String','21.6%',...
    'Position',[6 3 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot3,'VertexNormals',VertexNormals1,'YData',YData4,...
    'XData',XData6,...
    'Vertices',Vertices34,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot3,'VerticalAlignment','bottom','String','93.6%',...
    'Position',[6 4 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot3,'VerticalAlignment','top','String','6.4%',...
    'Position',[6 4 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot3,'VertexNormals',VertexNormals1,'YData',YData5,...
    'XData',XData6,...
    'Vertices',Vertices35,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot3,'VerticalAlignment','bottom','String','67.7%',...
    'Position',[6 5 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot3,'VerticalAlignment','top','String','32.3%',...
    'Position',[6 5 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot3,'VertexNormals',VertexNormals1,'YData',YData6,...
    'XData',XData6,...
    'Vertices',Vertices36,...
    'Faces',Faces1,...
    'FaceColor',[0.470588235294118 0.588235294117647 0.901960784313726]);

% Create text
text('Parent',subplot3,'VerticalAlignment','bottom','String','70.1%',...
    'Position',[6 6 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot3,'VerticalAlignment','top','String','29.9%',...
    'Position',[6 6 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold',...
    'Color',[0.4 0 0]);

% Create plot
plot(X1,Y1,'Parent',subplot3,'LineWidth',2,'Color',[0.25 0.25 0.25]);

% Create plot
plot(Y1,X1,'Parent',subplot3,'LineWidth',2,'Color',[0.25 0.25 0.25]);

% Create xlabel
xlabel('Target Class','FontWeight','bold','FontSize',12);

% Create ylabel
ylabel('Output Class','FontWeight','bold','FontSize',12);

% Create title
title('Test Confusion Matrix','FontWeight','bold','FontSize',12);

% Create subplot
subplot4 = subplot(2,2,4,'Parent',figure1,...
    'YTickLabel',{'1','2','3','4','5',''},...
    'YTick',[1 2 3 4 5 6 7],...
    'YDir','reverse',...
    'XTickLabel',{'1','2','3','4','5',''},...
    'XTick',[1 2 3 4 5 6 7],...
    'TickLength',[0 0],...
    'DataAspectRatio',[1 1 1]);
%% Uncomment the following line to preserve the X-limits of the axes
% xlim(subplot4,[0.5 6.5]);
%% Uncomment the following line to preserve the Y-limits of the axes
% ylim(subplot4,[0.5 6.5]);
box(subplot4,'on');
hold(subplot4,'all');

% Create patch
patch('Parent',subplot4,'VertexNormals',VertexNormals1,'YData',YData1,...
    'XData',XData1,...
    'Vertices',Vertices1,...
    'Faces',Faces1,...
    'FaceColor',[0.470588235294118 0.901960784313726 0.705882352941177]);

% Create text
text('Parent',subplot4,'VerticalAlignment','bottom','String','585',...
    'Position',[1 1 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot4,'VerticalAlignment','top','String','7.3%',...
    'Position',[1 1 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot4,'VertexNormals',VertexNormals1,'YData',YData2,...
    'XData',XData1,...
    'Vertices',Vertices2,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot4,'VerticalAlignment','bottom','String','753',...
    'Position',[1 2 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot4,'VerticalAlignment','top','String','9.4%',...
    'Position',[1 2 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot4,'VertexNormals',VertexNormals1,'YData',YData3,...
    'XData',XData1,...
    'Vertices',Vertices3,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot4,'VerticalAlignment','bottom','String','52',...
    'Position',[1 3 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot4,'VerticalAlignment','top','String','0.7%',...
    'Position',[1 3 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot4,'VertexNormals',VertexNormals1,'YData',YData4,...
    'XData',XData1,...
    'Vertices',Vertices4,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot4,'VerticalAlignment','bottom','String','71',...
    'Position',[1 4 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot4,'VerticalAlignment','top','String','0.9%',...
    'Position',[1 4 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot4,'VertexNormals',VertexNormals1,'YData',YData5,...
    'XData',XData1,...
    'Vertices',Vertices5,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot4,'VerticalAlignment','bottom','String','139',...
    'Position',[1 5 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot4,'VerticalAlignment','top','String','1.7%',...
    'Position',[1 5 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot4,'VertexNormals',VertexNormals1,'YData',YData6,...
    'XData',XData1,...
    'Vertices',Vertices6,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot4,'VerticalAlignment','bottom','String','36.6%',...
    'Position',[1 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot4,'VerticalAlignment','top','String','63.4%',...
    'Position',[1 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot4,'VertexNormals',VertexNormals1,'YData',YData1,...
    'XData',XData2,...
    'Vertices',Vertices7,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot4,'VerticalAlignment','bottom','String','359',...
    'Position',[2 1 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot4,'VerticalAlignment','top','String','4.5%',...
    'Position',[2 1 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot4,'VertexNormals',VertexNormals1,'YData',YData2,...
    'XData',XData2,...
    'Vertices',Vertices8,...
    'Faces',Faces1,...
    'FaceColor',[0.470588235294118 0.901960784313726 0.705882352941177]);

% Create text
text('Parent',subplot4,'VerticalAlignment','bottom','String','1048',...
    'Position',[2 2 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot4,'VerticalAlignment','top','String','13.1%',...
    'Position',[2 2 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot4,'VertexNormals',VertexNormals1,'YData',YData3,...
    'XData',XData2,...
    'Vertices',Vertices9,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot4,'VerticalAlignment','bottom','String','53',...
    'Position',[2 3 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot4,'VerticalAlignment','top','String','0.7%',...
    'Position',[2 3 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot4,'VertexNormals',VertexNormals1,'YData',YData4,...
    'XData',XData2,...
    'Vertices',Vertices10,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot4,'VerticalAlignment','bottom','String','20',...
    'Position',[2 4 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot4,'VerticalAlignment','top','String','0.3%',...
    'Position',[2 4 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot4,'VertexNormals',VertexNormals1,'YData',YData5,...
    'XData',XData2,...
    'Vertices',Vertices11,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot4,'VerticalAlignment','bottom','String','120',...
    'Position',[2 5 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot4,'VerticalAlignment','top','String','1.5%',...
    'Position',[2 5 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot4,'VertexNormals',VertexNormals1,'YData',YData6,...
    'XData',XData2,...
    'Vertices',Vertices12,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot4,'VerticalAlignment','bottom','String','65.5%',...
    'Position',[2 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot4,'VerticalAlignment','top','String','34.5%',...
    'Position',[2 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot4,'VertexNormals',VertexNormals1,'YData',YData1,...
    'XData',XData3,...
    'Vertices',Vertices13,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot4,'VerticalAlignment','bottom','String','41',...
    'Position',[3 1 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot4,'VerticalAlignment','top','String','0.5%',...
    'Position',[3 1 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot4,'VertexNormals',VertexNormals1,'YData',YData2,...
    'XData',XData3,...
    'Vertices',Vertices14,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot4,'VerticalAlignment','bottom','String','17',...
    'Position',[3 2 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot4,'VerticalAlignment','top','String','0.2%',...
    'Position',[3 2 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot4,'VertexNormals',VertexNormals1,'YData',YData3,...
    'XData',XData3,...
    'Vertices',Vertices15,...
    'Faces',Faces1,...
    'FaceColor',[0.470588235294118 0.901960784313726 0.705882352941177]);

% Create text
text('Parent',subplot4,'VerticalAlignment','bottom','String','1175',...
    'Position',[3 3 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot4,'VerticalAlignment','top','String','14.7%',...
    'Position',[3 3 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot4,'VertexNormals',VertexNormals1,'YData',YData4,...
    'XData',XData3,...
    'Vertices',Vertices16,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot4,'VerticalAlignment','bottom','String','15',...
    'Position',[3 4 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot4,'VerticalAlignment','top','String','0.2%',...
    'Position',[3 4 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot4,'VertexNormals',VertexNormals1,'YData',YData5,...
    'XData',XData3,...
    'Vertices',Vertices17,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot4,'VerticalAlignment','bottom','String','352',...
    'Position',[3 5 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot4,'VerticalAlignment','top','String','4.4%',...
    'Position',[3 5 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot4,'VertexNormals',VertexNormals1,'YData',YData6,...
    'XData',XData3,...
    'Vertices',Vertices18,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot4,'VerticalAlignment','bottom','String','73.4%',...
    'Position',[3 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot4,'VerticalAlignment','top','String','26.6%',...
    'Position',[3 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot4,'VertexNormals',VertexNormals1,'YData',YData1,...
    'XData',XData4,...
    'Vertices',Vertices19,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot4,'VerticalAlignment','bottom','String','40',...
    'Position',[4 1 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot4,'VerticalAlignment','top','String','0.5%',...
    'Position',[4 1 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot4,'VertexNormals',VertexNormals1,'YData',YData2,...
    'XData',XData4,...
    'Vertices',Vertices20,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot4,'VerticalAlignment','bottom','String','0',...
    'Position',[4 2 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot4,'VerticalAlignment','top','String','0.0%',...
    'Position',[4 2 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot4,'VertexNormals',VertexNormals1,'YData',YData3,...
    'XData',XData4,...
    'Vertices',Vertices21,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot4,'VerticalAlignment','bottom','String','36',...
    'Position',[4 3 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot4,'VerticalAlignment','top','String','0.4%',...
    'Position',[4 3 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot4,'VertexNormals',VertexNormals1,'YData',YData4,...
    'XData',XData4,...
    'Vertices',Vertices22,...
    'Faces',Faces1,...
    'FaceColor',[0.470588235294118 0.901960784313726 0.705882352941177]);

% Create text
text('Parent',subplot4,'VerticalAlignment','bottom','String','1524',...
    'Position',[4 4 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot4,'VerticalAlignment','top','String','19.1%',...
    'Position',[4 4 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot4,'VertexNormals',VertexNormals1,'YData',YData5,...
    'XData',XData4,...
    'Vertices',Vertices23,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot4,'VerticalAlignment','bottom','String','0',...
    'Position',[4 5 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot4,'VerticalAlignment','top','String','0.0%',...
    'Position',[4 5 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot4,'VertexNormals',VertexNormals1,'YData',YData6,...
    'XData',XData4,...
    'Vertices',Vertices24,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot4,'VerticalAlignment','bottom','String','95.3%',...
    'Position',[4 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot4,'VerticalAlignment','top','String','4.7%',...
    'Position',[4 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot4,'VertexNormals',VertexNormals1,'YData',YData1,...
    'XData',XData5,...
    'Vertices',Vertices25,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot4,'VerticalAlignment','bottom','String','77',...
    'Position',[5 1 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot4,'VerticalAlignment','top','String','1.0%',...
    'Position',[5 1 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot4,'VertexNormals',VertexNormals1,'YData',YData2,...
    'XData',XData5,...
    'Vertices',Vertices26,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot4,'VerticalAlignment','bottom','String','69',...
    'Position',[5 2 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot4,'VerticalAlignment','top','String','0.9%',...
    'Position',[5 2 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot4,'VertexNormals',VertexNormals1,'YData',YData3,...
    'XData',XData5,...
    'Vertices',Vertices27,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot4,'VerticalAlignment','bottom','String','213',...
    'Position',[5 3 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot4,'VerticalAlignment','top','String','2.7%',...
    'Position',[5 3 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot4,'VertexNormals',VertexNormals1,'YData',YData4,...
    'XData',XData5,...
    'Vertices',Vertices28,...
    'Faces',Faces1,...
    'FaceColor',[0.901960784313726 0.549019607843137 0.549019607843137]);

% Create text
text('Parent',subplot4,'VerticalAlignment','bottom','String','0',...
    'Position',[5 4 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot4,'VerticalAlignment','top','String','0.0%',...
    'Position',[5 4 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot4,'VertexNormals',VertexNormals1,'YData',YData5,...
    'XData',XData5,...
    'Vertices',Vertices29,...
    'Faces',Faces1,...
    'FaceColor',[0.470588235294118 0.901960784313726 0.705882352941177]);

% Create text
text('Parent',subplot4,'VerticalAlignment','bottom','String','1241',...
    'Position',[5 5 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold');

% Create text
text('Parent',subplot4,'VerticalAlignment','top','String','15.5%',...
    'Position',[5 5 0],...
    'HorizontalAlignment','center');

% Create patch
patch('Parent',subplot4,'VertexNormals',VertexNormals1,'YData',YData6,...
    'XData',XData5,...
    'Vertices',Vertices30,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot4,'VerticalAlignment','bottom','String','77.6%',...
    'Position',[5 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot4,'VerticalAlignment','top','String','22.4%',...
    'Position',[5 6 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot4,'VertexNormals',VertexNormals1,'YData',YData1,...
    'XData',XData6,...
    'Vertices',Vertices31,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot4,'VerticalAlignment','bottom','String','53.1%',...
    'Position',[6 1 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot4,'VerticalAlignment','top','String','46.9%',...
    'Position',[6 1 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot4,'VertexNormals',VertexNormals1,'YData',YData2,...
    'XData',XData6,...
    'Vertices',Vertices32,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot4,'VerticalAlignment','bottom','String','55.5%',...
    'Position',[6 2 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot4,'VerticalAlignment','top','String','44.5%',...
    'Position',[6 2 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot4,'VertexNormals',VertexNormals1,'YData',YData3,...
    'XData',XData6,...
    'Vertices',Vertices33,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot4,'VerticalAlignment','bottom','String','76.8%',...
    'Position',[6 3 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot4,'VerticalAlignment','top','String','23.2%',...
    'Position',[6 3 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot4,'VertexNormals',VertexNormals1,'YData',YData4,...
    'XData',XData6,...
    'Vertices',Vertices34,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot4,'VerticalAlignment','bottom','String','93.5%',...
    'Position',[6 4 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot4,'VerticalAlignment','top','String','6.5%',...
    'Position',[6 4 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot4,'VertexNormals',VertexNormals1,'YData',YData5,...
    'XData',XData6,...
    'Vertices',Vertices35,...
    'Faces',Faces1,...
    'FaceColor',[0.5 0.5 0.5]);

% Create text
text('Parent',subplot4,'VerticalAlignment','bottom','String','67.0%',...
    'Position',[6 5 0],...
    'HorizontalAlignment','center',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot4,'VerticalAlignment','top','String','33.0%',...
    'Position',[6 5 0],...
    'HorizontalAlignment','center',...
    'Color',[0.4 0 0]);

% Create patch
patch('Parent',subplot4,'VertexNormals',VertexNormals1,'YData',YData6,...
    'XData',XData6,...
    'Vertices',Vertices36,...
    'Faces',Faces1,...
    'FaceColor',[0.470588235294118 0.588235294117647 0.901960784313726]);

% Create text
text('Parent',subplot4,'VerticalAlignment','bottom','String','69.7%',...
    'Position',[6 6 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold',...
    'Color',[0 0.4 0]);

% Create text
text('Parent',subplot4,'VerticalAlignment','top','String','30.3%',...
    'Position',[6 6 0],...
    'HorizontalAlignment','center',...
    'FontWeight','bold',...
    'Color',[0.4 0 0]);

% Create plot
plot(X1,Y1,'Parent',subplot4,'LineWidth',2,'Color',[0.25 0.25 0.25]);

% Create plot
plot(Y1,X1,'Parent',subplot4,'LineWidth',2,'Color',[0.25 0.25 0.25]);

% Create xlabel
xlabel('Target Class','FontWeight','bold','FontSize',12);

% Create ylabel
ylabel('Output Class','FontWeight','bold','FontSize',12);

% Create title
title('All Confusion Matrix','FontWeight','bold','FontSize',12);

